package org.jiuling.aliyun.sms.convert;

import org.jiuling.aliyun.sms.model.ModifySmsSignResponseModel;

/**
 * 修改短信签名响应转换
 * @author 紫灵
 * @date 2023年02月20日 22时22分45秒
 */
public class ModifySmsSignResponseConvert {

    /** 私有构造方法，禁止创建对象 */
    private ModifySmsSignResponseConvert() {}

    /**
     * 内容转模型
     * @param modifySmsSignResponseBody 修改短信签名响应内容
     * @return 修改短信签名响应模型
     */
    public static ModifySmsSignResponseModel bodyToModel(com.aliyun.sdk.service.dysmsapi20170525.models.ModifySmsSignResponseBody modifySmsSignResponseBody){
        ModifySmsSignResponseModel modifySmsSignResponseModel = new ModifySmsSignResponseModel();
        modifySmsSignResponseModel.setSignName(modifySmsSignResponseBody.getSignName());
        modifySmsSignResponseModel.setCode(modifySmsSignResponseBody.getCode());
        modifySmsSignResponseModel.setMessage(modifySmsSignResponseBody.getMessage());
        modifySmsSignResponseModel.setRequestId(modifySmsSignResponseBody.getRequestId());
        return modifySmsSignResponseModel;
    }

    /**
     * 内容转模型
     * @param modifySmsSignResponseBody 修改短信签名响应内容
     * @return 修改短信签名响应模型
     */
    public static ModifySmsSignResponseModel bodyToModel(com.aliyun.dysmsapi20170525.models.ModifySmsSignResponseBody modifySmsSignResponseBody){
        ModifySmsSignResponseModel modifySmsSignResponseModel = new ModifySmsSignResponseModel();
        modifySmsSignResponseModel.setSignName(modifySmsSignResponseBody.getSignName());
        modifySmsSignResponseModel.setCode(modifySmsSignResponseBody.getCode());
        modifySmsSignResponseModel.setMessage(modifySmsSignResponseBody.getMessage());
        modifySmsSignResponseModel.setRequestId(modifySmsSignResponseBody.getRequestId());
        return modifySmsSignResponseModel;
    }
}
